Do not return on void functions
authorIgnacio Casal Quinteiro <icq@gnome.org>
Thu, 19 Feb 2015 13:44:34 +0000 (14:44 +0100)
committerIgnacio Casal Quinteiro <icq@gnome.org>
Thu, 19 Feb 2015 13:46:32 +0000 (14:46 +0100)
gtk/gtkbitmaskprivateimpl.h
gtk/gtkcssshorthandproperty.c
gtk/gtkpaned.c
gtk/gtkstyleproperty.c

index c0058c77da94bd30866cebf5b59ee301c697b830..230c6a64959923cf71e0ea44beaa72058cb60273 100644 (file)
@@ -38,7 +38,7 @@ static inline void
 _gtk_bitmask_free (GtkBitmask *mask)
 {
   if (_gtk_bitmask_is_allocated (mask))
-    return _gtk_allocated_bitmask_free (mask);
+    _gtk_allocated_bitmask_free (mask);
 }
 
 static inline char *
@@ -55,7 +55,7 @@ static inline void
 _gtk_bitmask_print (const GtkBitmask *mask,
                     GString          *string)
 {
-  return _gtk_allocated_bitmask_print (mask, string);
+  _gtk_allocated_bitmask_print (mask, string);
 }
 
 static inline GtkBitmask *
index 68bb064a102fd1416f92245a690f732efa4ccc83..5e05761bbda43f0fdf41dac2fdb6c9846d19ee31 100644 (file)
@@ -82,7 +82,7 @@ _gtk_css_shorthand_property_query (GtkStyleProperty   *property,
 {
   GtkCssShorthandProperty *shorthand = GTK_CSS_SHORTHAND_PROPERTY (property);
 
-  return shorthand->query (shorthand, value, query_func, query_data);
+  shorthand->query (shorthand, value, query_func, query_data);
 }
 
 static GtkCssValue *
index 0790c0b666d4bc4e66ab7f5d77d22e671c451acd..31c8b96c7539ee5f8d4707dafcd41ed9e9023402 100644 (file)
@@ -1182,9 +1182,9 @@ gtk_paned_get_preferred_size (GtkWidget      *widget,
   GtkPanedPrivate *priv = paned->priv;
 
   if (orientation == priv->orientation)
-    return gtk_paned_get_preferred_size_for_orientation (widget, size, minimum, natural);
+    gtk_paned_get_preferred_size_for_orientation (widget, size, minimum, natural);
   else
-    return gtk_paned_get_preferred_size_for_opposite_orientation (widget, size, minimum, natural);
+    gtk_paned_get_preferred_size_for_opposite_orientation (widget, size, minimum, natural);
 }
 
 static void
index 40bcd46a7016aa571e1d364b6a6639342c88275c..956589729051ceb55e4eb93b3652edc07d3edaa5 100644 (file)
@@ -215,7 +215,7 @@ _gtk_style_property_query (GtkStyleProperty  *property,
 
   klass = GTK_STYLE_PROPERTY_GET_CLASS (property);
 
-  return klass->query (property, value, query_func, query_data);
+  klass->query (property, value, query_func, query_data);
 }
 
 void